<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>De Stijl: /Users/Piro/Dropbox/destijl/c/headers/djpegimage.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">De Stijl
   
   </div>
   <div id="projectbrief">Librairie pour le projet De Stijl</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('djpegimage_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/Users/Piro/Dropbox/destijl/c/headers/djpegimage.h</div>  </div>
</div>
<div class="contents">
<a href="djpegimage_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef JPEGIMAGE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define JPEGIMAGE_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;opencv/cv.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;opencv/highgui.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="dimage_8h.html" title="Déclaration de la classe DImage.">./dimage.h</a>&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="dconstantes_8h.html" title="Déclaration des constantes du projet.">./dconstantes.h</a>&quot;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00023"></a>00023 <span class="preprocessor">#endif</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00030"></a><a class="code" href="struct_d_jpegimage.html">00030</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> {
<a name="l00031"></a><a class="code" href="struct_d_jpegimage.html#af725a4f87a9b5872a3becaa2dcea9e34">00031</a>         void(*<a class="code" href="struct_d_jpegimage.html#af725a4f87a9b5872a3becaa2dcea9e34">free</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> * This); 
<a name="l00032"></a><a class="code" href="struct_d_jpegimage.html#a5e9334fd99bd280b0fcc7ca6946f2d30">00032</a>         void(*<a class="code" href="struct_d_jpegimage.html#a5e9334fd99bd280b0fcc7ca6946f2d30">release</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> * This); 
<a name="l00033"></a><a class="code" href="struct_d_jpegimage.html#a4e66b089fb550376c66a17ff1bf6b244">00033</a>         void(*<a class="code" href="struct_d_jpegimage.html#a4e66b089fb550376c66a17ff1bf6b244">print</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> * This); 
<a name="l00034"></a><a class="code" href="struct_d_jpegimage.html#ade6a6a4bf54472907ee2ac781d8adf1f">00034</a>         void(*<a class="code" href="struct_d_jpegimage.html#ade6a6a4bf54472907ee2ac781d8adf1f">compress</a>) (<span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This, <a class="code" href="struct_d_image.html" title="DImage est un objet contenant la description d&#39;une image.">DImage</a> * img); 
<a name="l00035"></a><a class="code" href="struct_d_jpegimage.html#a0733320c4b23f6e60dc61413e85611b1">00035</a>         CvMat * (*get_data) (<span class="keyword">struct </span><a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> * This); 
<a name="l00037"></a><a class="code" href="struct_d_jpegimage.html#a929742ee144b6a7897a6a56e70cbea73">00037</a>         CvMat* <a class="code" href="struct_d_jpegimage.html#a929742ee144b6a7897a6a56e70cbea73">data</a>; 
<a name="l00038"></a>00038         <span class="comment">//long long date;</span>
<a name="l00039"></a>00039     } <a class="code" href="djpegimage_8h.html#aa421a446be05dace4da779da4b7519cd">DJpegimage</a>;
<a name="l00040"></a>00040 
<a name="l00046"></a>00046     <a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a>* <a class="code" href="djpegimage_8h.html#aa797067b196b6cfbf2b0c493887910d9" title="Instanciation de l&#39;objet DJpegimage.">d_new_jpegimage</a>(<span class="keywordtype">void</span>);
<a name="l00047"></a>00047 
<a name="l00053"></a>00053     <span class="keywordtype">void</span> <a class="code" href="djpegimage_8h.html#a9422a0a69be09b714cebdec43214e8bf" title="Fonction pour désallouer une instance de l&#39;objet DJpegimage.">d_jpegimage_free</a>(<a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This);
<a name="l00054"></a>00054 
<a name="l00060"></a>00060     <span class="keywordtype">void</span> <a class="code" href="djpegimage_8h.html#a53cc1b3b35ced5b4f4de0a769205d020" title="Fonction pour uniquement désallouer les données de l&#39;image compressée.">d_jpegimage_release</a>(<a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This);
<a name="l00061"></a>00061 
<a name="l00067"></a>00067     <span class="keywordtype">void</span> <a class="code" href="djpegimage_8h.html#a7b7d31871fc88fd93f6f404080fdafd5" title="Affichage d&#39;une instance d&#39;objet DJpegimage.">d_jpegimage_print</a>(<a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This);
<a name="l00068"></a>00068 
<a name="l00076"></a>00076     <span class="keywordtype">void</span> <a class="code" href="djpegimage_8h.html#a9979022763d27f17d13a42a5c7857e93" title="Compression et stockage d&#39;une image dans l&#39;objet DJpegimage.">d_jpegimage_compress</a>(<a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This, <a class="code" href="struct_d_image.html" title="DImage est un objet contenant la description d&#39;une image.">DImage</a> *img);
<a name="l00077"></a>00077 
<a name="l00084"></a>00084     CvMat* <a class="code" href="djpegimage_8h.html#abfa4ad3022d2488fb4be39c259e59565" title="Renvoi la matrice contenant l&#39;image compressée.">d_jpegimage_get_data</a>(<a class="code" href="struct_d_jpegimage.html" title="DJpegimage est un objet contenant la description d&#39;une jpegimage.">DJpegimage</a> *This);
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>}
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="djpegimage_8h.html">djpegimage.h</a>      </li>

    <li class="footer">Generated on Tue Apr 24 2012 14:13:31 for De Stijl by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6 </li>
   </ul>
 </div>


</body>
</html>
